package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Jeanyung
 */
@Mapper
// Mapper接口
public interface NursingProjectMapper {
    int insertNursingProject(NursingProject nursingProject);
    int updateNursingProject(NursingProject nursingProject);
    int deleteNursingProjectById(Long id);
    NursingProject selectNursingProjectById(Long id);
    //分页条件查询
    Page<NursingProjectVo> pageQuery(@Param("name") String name,
                                     @Param("status") Integer status);

    Integer selectByNursingProjectName(String name);

    Integer selectByNursingProjectNameForUpdate(@Param("id") Long id);

    void statusNursingProject(Long id, Integer status);

    List<NursingProjectVo> getAllNursingProject();
}
